package object;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.FindBys;
import utility.BasePage;

/**
 * Created by 000001159 on 2017/1/9.
 */

public class PerCustInfoPage extends BasePage {

    public PerCustInfoPage(WebDriver driver) {
        super(driver);
    }

    @FindBy(css = ".table input+span input")
    public WebElement custName;



    /*客户类型*/
    @FindBy(css = "#custTypeId+span a")
    public WebElement custType;
    @FindBy(css="#_easyui_combobox_i28_1")
    public WebElement custTypeName;

    /*定位客户渠道*/
    @FindBy(css ="[comboname~=custChannelId]+span")
    public WebElement custChannelType;
    @FindBy(css = "#_easyui_combobox_i29_1")
    public WebElement custChannelName;

    /*定位民族*/
    @FindBy(css ="[comboname~=nationId]+span")
    public WebElement custNationType;
    @FindBy(css = "#_easyui_combobox_i35_1")
    public WebElement custNationName;

    /*定位性别*/
    @FindBy(css ="[comboname~=gender]+span")
    public WebElement custGenderType;
    @FindBy(css = "#_easyui_combobox_i39_1")
    public WebElement custGenderName;

    /*定位证件类型*/
    @FindBy(css ="[comboname~=certificateTypeId]+span")
    public WebElement custCertificateType;
    @FindBy(css = "#_easyui_combobox_i30_1")
    public WebElement custCertificateName;

    /*定位学历*/
    @FindBy(css ="[comboname~=educationId]+span")
    public WebElement custEucationType;
    @FindBy(css = "#_easyui_combobox_i33_2")
    public WebElement custEucationName;

    /*定位学位*/
    @FindBy(css ="[comboname~=degreeId]+span")
    public WebElement custDegreeType;
    @FindBy(css = "#_easyui_combobox_i31_3")
    public WebElement custDegreeName;

    /*定位职业*/
    @FindBy(css ="[comboname~=professionId]+span")
    public WebElement custProfessionType;
    @FindBy(css = "#_easyui_combobox_i32_2")
    public WebElement custProfessionName;

    /*定位婚姻*/
    @FindBy(css ="[comboname~=marryId]+span")
    public WebElement custMarriageType;
    @FindBy(css = "#_easyui_combobox_i34_2")
    public WebElement custMarriageName;


    /*定位证件号码*/
    @FindBy(css =".table [name~=certificateNo]")
    public WebElement custCertificateNum;

    /*定位手机号*/
    @FindBy(css =".table [name~=telephone]")
    public WebElement custPhoneNum;

    /*定位提交按钮*/
    @FindBy(xpath ="//*[@id=\"tpl_personal_basic_info\"]/div/a")
    public WebElement custButton;

    /*定位弹出框按钮*/
    @FindBy( css=".messager-button")
    public WebElement aButton;


    /*
    * 定位银行卡*/
    @FindBy(css = ".tabs li:nth-child(2)")
    public WebElement tabBank;

    /*定位银行卡类型*/
    @FindBy(css ="#cardTypeId+span")
    public WebElement custBankType;
    @FindBy(xpath ="//div[text()='借记卡']")
    public WebElement custBankTypeName;

    /*定位开户银行*/
    @FindBy(css ="#bankId+span")
    public WebElement custBankid;
    @FindBy(xpath = "//div[text()='中国农业银行']")
    public WebElement custBankidName;

    /*定位开户支行名称*/
    @FindBy(css ="[textboxname~=bankBranchName]+span [type~=text]")
    public WebElement custBankBranchName;

    /*定位银行卡号*/
    @FindBy(css = "[textboxname~=bankAcct]+span [type~=text]")
    public WebElement custBankNum;

    /*定位银行预留手机号*/
    @FindBy(css ="[textboxname~=bankPhone]+span [type~=text] ")
    public WebElement custBankPhone;

    /*保存银行卡按钮*/
    @FindBy(css = "#submitBankCard")
    public WebElement custBankButton;
//
//    @FindBy()
//    public WebElement ;
//
//    @FindBy()
//    public WebElement ;
//
//    @FindBy()
//    public WebElement ;
//
//    @FindBy()
//    public WebElement ;
//
//    @FindBy()
//    public WebElement ;
//
//    @FindBy()
//    public WebElement ;
}
